package org.srtc.infopub.dataReceiver;

import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLClassLoader;
import org.apache.activemq.broker.BrokerFactory;
import org.apache.activemq.broker.BrokerService;
import org.srtc.infopub.application.server.DaccServer;


public class mqserver
	{
		/**
		 * @param args
		 */
		public static void main(String[] args)
			{
				try
				{
					BrokerService broker = BrokerFactory.createBroker(new URI(
							"xbean:conf/activemq.xml"));
					new Thread(new DaccServer()).start();
					Consumer.start();
				}
				catch (URISyntaxException e)
				{
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
				catch (Exception e)
				{
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

			}

	}